﻿using System.ComponentModel;
using VM.Common.Enums;
using VM.Common.Helper;

namespace Plugin.ExportImage
{
    public class ExportModel : NotifyPropertyBase
    {
        /// <summary>
        /// 执行结果
        /// </summary>
        public enum RunStatus
        {
            OK,
            NG,
            ALL
        }

        private List<string> _RunStatusArray = EnumHelper.GetEnumDescriptions<RunStatus>();
        public List<string> RunStatusArray
        {
            get { return _RunStatusArray; }
            set { Set(ref _RunStatusArray, value); }
        }

        private string _RunStatu = EnumHelper.GetEnumDescription(RunStatus.ALL);
        public string RunStatu
        {
            get { return _RunStatu; }
            set
            {
                Set(ref _RunStatu, value);
            }
        }

        /// <summary>
        /// 保存格式
        /// </summary>
        public enum SaveFormats
        {
            JPEG,
            BMP
        }

        private List<string> _SaveFormatArray = EnumHelper.GetEnumDescriptions<SaveFormats>();
        public List<string> SaveFormatArray
        {
            get { return _SaveFormatArray; }
            set { Set(ref _SaveFormatArray, value); }
        }

        private string _SaveFormat = EnumHelper.GetEnumDescription(SaveFormats.BMP);
        public string SaveFormat
        {
            get { return _SaveFormat; }
            set
            {
                Set(ref _SaveFormat, value);
            }
        }


        /// <summary>
        /// 保存命名
        /// </summary>
        public enum SaveNames
        {
            [Description("序号")]
            Index,
            [Description("时间")]
            Time,
            [Description("无")]
            Null
        }

        private List<string> _SaveNameArray = EnumHelper.GetEnumDescriptions<SaveNames>();
        public List<string> SaveNameArray
        {
            get { return _SaveNameArray; }
            set { Set(ref _SaveNameArray, value); }
        }

        private string _SaveName = EnumHelper.GetEnumDescription(SaveNames.Index);
        public string SaveName
        {
            get { return _SaveName; }
            set
            {
                Set(ref _SaveName, value);
            }
        }

    }
}
